import Main from '@/components/main';

export const product = [
  {
    path: '/product',
    name: 'Product',
    component: Main,
    meta: {
      title: '产品管理',
      icon: 'ios-browsers'
    },
    children: [
      {
        path: '/product/product-list',
        name: 'ProductList',
        meta: {
          title: '产品列表',
          // icon: 'ios-contacts',
          privilege: [
            { title: '查询', name: 'product-query' },
            { title: '新增', name: 'product-add' },
            { title: '编辑', name: 'product-update' },
            { title: '删除', name: 'product-delete' }
          ]
        },
        component: () => import('@/views/product/product/product-list.vue')
      },
      {
        path: '/product/product-tag-list',
        name: 'ProductTagList',
        meta: {
          title: '产品标签',
          // icon: 'md-contacts',
          privilege: [
            { title: '查询', name: 'product-tag-query' },
            { title: '新增', name: 'product-tag-add' },
            { title: '编辑', name: 'product-tag-update' },
            { title: '删除', name: 'product-tag-delete' }
          ]
        },
        component: () => import('@/views/product/producttag/product-tag-list.vue')
      },
      {
        path: '/product/product-catgegory-list',
        name: 'ProductCategoryList',
        meta: {
          title: '产品类型',
          // icon: 'ios-contacts',
          privilege: [
            { title: '查询', name: 'product-category-query' },
            { title: '新增', name: 'product-category-add' },
            { title: '编辑', name: 'product-category-update' },
            { title: '删除', name: 'product-category-delete' }
          ]
        },
        component: () => import('@/views/product/productcategory/product-category-list.vue')
      }
    ]
  }
];
